Skip to content

🎨 Palette: Keyboard Accessible Tooltips#198

Open
thebearwithabite wants to merge 1 commit intomasterfrom
palette-accessible-tooltips-8014022226637141112
Open

🎨 Palette: Keyboard Accessible Tooltips#198
thebearwithabite wants to merge 1 commit intomasterfrom
palette-accessible-tooltips-8014022226637141112

Conversation

@thebearwithabite
Copy link
Copy Markdown
Owner

This PR addresses an accessibility issue where several informational tooltips in the Dashboard and Settings panels were completely inaccessible to keyboard navigators and screen readers.

💡 What:

  • Converted the decorative <Info> icons that triggered tooltips on hover into focusable <button type="button"> elements.
  • Applied aria-label attributes to the buttons (e.g., "Disk space protection info").
  • Added aria-hidden="true" to the decorative Lucide <Info> components.
  • Switched from Tailwind's group-hover:visible strategy to peer-hover:visible peer-focus:visible.

🎯 Why:

  • Users relying on keyboard navigation (Tab key) could not reach or trigger these important tooltips.
  • The change makes the micro-UX more inclusive while perfectly matching the existing visual design and animation patterns.

♿ Accessibility:

  • Keyboard focus now naturally lands on the info icons.
  • Screen readers will announce the button's purpose instead of ignoring the interactive element or reading raw SVG code.
  • Tooltips are exposed correctly via role="tooltip".

Files Modified:

  • frontend_v2/src/components/dashboard/DiskSpaceWidget.tsx
  • frontend_v2/src/components/dashboard/MonitorStatusWidget.tsx
  • frontend_v2/src/components/settings/ConfidenceModeSwitcher.tsx
  • frontend_v2/src/components/settings/RollbackPanel.tsx

PR created automatically by Jules for task 8014022226637141112 started by @thebearwithabite

Wrapped hover-only `<Info>` icons in focusable `<button>` elements with clear `aria-label`s and `aria-hidden="true"` on the decorative SVG. Converted `group-hover` Tailwind classes to `peer-hover:visible peer-focus:visible` with `role="tooltip"` to ensure proper visibility for both mouse hover and keyboard focus navigation.

Co-authored-by: thebearwithabite <216692431+thebearwithabite@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant